package com.paradogs.framework.core.exceptions.base;

/**
 * @author: yumi
 * @date: 2023/8/1  16:30
 * @Description: TODO
 * ps: 不要重写 toString 方法，否则异常显示不正常不规范了
 * 异常栈显示正常：com.paradogs.common.server.exceptions.base.BaseUncheckedException: uncheck test
 */
public class BaseUncheckedException extends RuntimeException {

    /**
     * 错误码
     */
    private int code;


    public BaseUncheckedException(int code, String message) {
        super(message);
        this.code = code;
    }

    public BaseUncheckedException(Throwable cause) {
        super(cause);
    }

}
